package cn.edu.scau.cmi.dengzejun.chapter09;

import java.util.*;

public class Example9_8 {
	public static void main(String args[]) {
		String sourceString = "Kirisame Marisa is my wife!";
		EncryptAndDecrypt person = new EncryptAndDecrypt();
		System.out.println("please input the password");
		Scanner scanner = new Scanner(System.in);
		String password = scanner.nextLine();
		String sercet = person.encrypt(sourceString,password);
		System.out.println("sercet is " + sercet);
		System.out.println("please input the password to decode it ");
		password = scanner.nextLine();
		String source = person.decrypt(sercet,password);
		System.out.println("the source is " +source);
		return;
	}
}
